package com.example.bot;

import com.example.bot.ws.Client;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class Start implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        if (!Client.connect("ws://127.0.0.1:8088")) {
            Client.reConnect();
        }
    }
}
